home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / perl / local.mk < prev    next >
Encoding:
Text File  |  1991-11-14  |  1.2 KB  |  45 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provided by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. LIBS +=        -lm 
  9.  
  10. #include    <$(SYSMAKEFILE)>
  11.  
  12. #
  13. # A couple of files can't be compiled with -O on a mips.
  14. #
  15. #if !empty(TM:Mds3100)
  16. $(TM).md/cmd.o: cmd.c
  17.     $(RM) -f $(.TARGET)
  18.     $(CC) $(CFLAGS:N-O) -c $(.IMPSRC) -o $(.TARGET)
  19.  
  20. $(TM).md/perl.o: perl.c
  21.     $(RM) -f $(.TARGET)
  22.     $(CC) $(CFLAGS:N-O) -c $(.IMPSRC) -o $(.TARGET)
  23.  
  24. $(TM).md/cmd.po: cmd.c
  25.     $(RM) -f $(.TARGET)
  26.     $(CC) $(CFLAGS:N-O) -DPROFILE -c $(.IMPSRC) -o $(.TARGET)
  27.  
  28. $(TM).md/perl.po: perl.c
  29.     $(RM) -f $(.TARGET)
  30.     $(CC) $(CFLAGS:N-O) -DPROFILE -c $(.IMPSRC) -o $(.TARGET)
  31. #endif
  32.  
  33. perly.h: perly.c
  34.     @ echo Dummy dependency for dumb parallel make
  35.     touch perly.h
  36.  
  37. perly.c: perly.y perly.fixer
  38.     @ echo 'Expect either' 29 shift/reduce and 59 reduce/reduce conflicts...
  39.     @ echo '           or' 27 shift/reduce and 61 reduce/reduce conflicts...
  40.     $(YACC) -d perly.y
  41.     sh ./perly.fixer y.tab.c perly.c
  42.     mv y.tab.h perly.h
  43.     echo 'extern YYSTYPE yylval;' >>perly.h
  44.  
  45.